import store from '@/store'

// 用于解决调试时出现动态模块重复注册的错误
export function hotModuleUnregisterModule (name: string) {
  if (!name) return
  if ((store.state as any)[name]) {
    store.unregisterModule(name)
  }
}
